pass arguments to shell script function